<template>
    <LModalSelect
        :visible="visible"
        :confirmLoading="confirmLoading" 
        :title="title" 
        :width="1000"
        :component="empSingleSelect"
        ref="drEmpSelect"
        @handleOk="handleOk" 
        @handleCancel="handleCancel"></LModalSelect>
</template>

<script>
import LModalSelect from '@/components/lt/LModalSelect'
import empSingleSelect from '@/views/system/emp/empSingleSelect'
export default {
    name:'drEmpSelect',
    components:{
        empSingleSelect,LModalSelect
    },
    data(){
        return{
            empSingleSelect,
            title:'详情',
            visible:false,
            confirmLoading: false,
        }
    },
    methods:{
        edit (record) {
            this.visible = true;
        },
        handleOk(selectedRecord){
            this.$emit('onSelect',selectedRecord)
            this.visible=false
        },
        handleCancel(){
            this.visible=false
        },
        close () {
            this.$emit('close');
            this.visible = false;
        },
    }
}
</script>